#include<stdio.h>

int main()
{
    int i = 0;
    scanf("%d",&i);
    int cnt = 0;
    do 
    {
        cnt++;
        i = i / 10;
    }while (i);
   printf("%d\n",cnt);

    return 0;
}